﻿@model Models.WebSite_HaiSheng.Image

@{
    ViewBag.Title = "图片编辑";
}

<h2>编辑</h2>
@*<script type="text/javascript">
    $(document).ready(function () {
        initialImgEdit($('#id').val());
    });
</script>*@
@using (Html.BeginForm("Edit", "Image", FormMethod.Post, new { enctype = "multipart/form-data" }))
{ 
   @Html.Hidden("id", Model.ID)
   @Html.Hidden("RelateType", (string)ViewBag.RelateType)
   @Html.Partial("change")
}

<div>
   @{
       var type = (string)ViewBag.RelateType;
       if (type == "Article")
       {
           @Html.ActionLink("回到列表", "Index","Article")
       }
       else
       {
             @Html.ActionLink("回到列表", "Index")
       }
     }
  
</div>
